﻿
/*
 *  author: able
 *  @2012/2/21 10:38:40
 * 
 */
namespace __ts.Core.Api
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class DefaultIoFilter : IoFilter
    {

        public void sessionCreated(IoSession session)
        {

        }

        public void sessionOpened(IoSession session)
        {

        }

        public void sessionClosed(IoSession session)
        {

        }

        public void sessionIdle(IoSession session, IdleStatus status)
        {

        }

        public void messageReceived(IoSession session, object message, FilterChain.ReadFilterChainController controller)
        {
            controller.callReadNextFilter(message);
        }

        public void messageWriting(IoSession session, object message, FilterChain.WriteFilterChainController controller)
        {
            controller.callWriteNextFilter(message);
        }
    }
}
